import axios from '@/utils/axios.js'
var pre = 'platform/admin/v1/sendSms/'
var func = [ 'getRegisterPhoneVerify', 'getBindingPhoneVerify', 'getForgetPhoneVerify', 'getUnbindingPhoneVerify' ]
var api = {}
func.forEach(value => {
  api[value] = pre + value
})

var getRegisterPhoneVerify = (params) => {
  return axios.post(api.getRegisterPhoneVerify, params)
}

var getBindingPhoneVerify = (params) => {
  return axios.post(api.getBindingPhoneVerify, params)
}

var getForgetPhoneVerify = (params) => {
  return axios.post(api.getForgetPhoneVerify, params)
}

var getUnbindingPhoneVerify = (params) => {
  return axios.post(api.getUnbindingPhoneVerify, params)
}


export {  getRegisterPhoneVerify, getBindingPhoneVerify, getForgetPhoneVerify, getUnbindingPhoneVerify }
